Socket
Socket
Sign inDemoInstall

heroku-client

Package Overview
Dependencies
Maintainers
31
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

heroku-client

A wrapper for the Heroku v3 API


Version published
Weekly downloads
22K
decreased by-83.14%
Maintainers
31
Weekly downloads
 
Created

What is heroku-client?

The heroku-client npm package is a JavaScript client library for the Heroku Platform API. It allows developers to interact with Heroku's services programmatically, enabling automation and integration with other tools and services.

What are heroku-client's main functionalities?

Authentication

This feature allows you to authenticate with the Heroku API using an API token. This is the first step to interact with Heroku services programmatically.

const Heroku = require('heroku-client');
const heroku = new Heroku({ token: 'YOUR_HEROKU_API_TOKEN' });

List Apps

This feature allows you to list all the applications associated with your Heroku account. The code sample demonstrates how to fetch and log the list of apps.

heroku.get('/apps').then(apps => console.log(apps));

Create App

This feature allows you to create a new Heroku application. The code sample shows how to create an app named 'my-new-app'.

heroku.post('/apps', { body: { name: 'my-new-app' } }).then(app => console.log(app));

Delete App

This feature allows you to delete an existing Heroku application. The code sample demonstrates how to delete an app named 'my-new-app'.

heroku.delete('/apps/my-new-app').then(response => console.log(response));

Get Config Vars

This feature allows you to retrieve the configuration variables for a specific Heroku application. The code sample shows how to fetch and log the config vars for 'my-new-app'.

heroku.get('/apps/my-new-app/config-vars').then(configVars => console.log(configVars));

Other packages similar to heroku-client

Keywords

FAQs

Package last updated on 04 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc